<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h2 th:text="${name}"></h2>

<div shiro:hasPermission="user:add">
    添加<a href="add">添加</a><br/>
</div>

<div shiro:hasPermission="user:update">
    更新<a href="update">更新</a><br/>
</div>

<br/>
<br/>
<br/>
<a href="toLogin">登录</a>
</body>
</html>